package com.example.demo.service;

import com.example.demo.bean.Goods;
import com.example.demo.bean.Order;
import com.example.demo.bean.User;
import com.example.demo.bean.view.GoodsView;

import java.util.List;

public interface GoodsService {

    public boolean insertGoods(Goods goods);

    public boolean deleteGoods(Goods goods);

    public boolean updateGoods(Goods preGoods, Goods laGoods);

    public List<Goods> findAllGoods();

    public List<GoodsView> findGoodsByOwner(User user);

    public GoodsView findGoodsById(String goodsNum);

    public List<GoodsView> findGoodsByName(String goodsName);

    public List<GoodsView> findAllGoodsView();

}
